package fnic.jsontrans.modesearch;

import java.util.ArrayList;


public class TermFacetOutput {
	long total;
	long other;
	long miss;
	ArrayList<TermCount> itemList = new ArrayList<TermCount>();
	
	public TermFacetOutput(long t, long o, long m){
		total = t;
		other = o;
		miss = m;
	}
	
	public void addTCItem(TermCount tc){
		itemList.add(tc);
	}
	public void setItemList(ArrayList<TermCount> list){
		itemList = list;
	}
	
	public ArrayList<TermCount> getItemList(){
		return itemList;
	}
	
	public long getTotal(){
		return total;
	}
	
	public long getOther(){
		return other;
	}
	
	public long getMiss(){
		return miss;
	}
	
	public static class TermCount {
		String term;
		int count;

		public TermCount(String t, int c) {
			term = t;
			count = c;
		}

		public String getTerm() {
			return term;
		}

		public int getCount() {
			return count;
		}
	}
}
